package com.mf.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

/**
 * <p>
 * 每天用户金额变动记录历史
 * </p>
 *
 * @author mf
 * @since 2024-05-19
 */
@Getter
@Setter
@TableName("t_user_day_history")
public class UserDayHistory {

@TableId(value = "id", type = IdType.AUTO)
@NotEmpty
private Integer id;

/**
 * 用户id
 */
@NotEmpty
@Schema(description = "用户id")
private Integer userId;

/**
 * 账户余额
 */
@Schema(description = "账户余额")
@NotEmpty
private BigDecimal amount;

/**
 * 持仓金额
 */
@Schema(description = "持仓金额")
@NotEmpty
private BigDecimal positionsAmount;

/**
 * 当前日期
 */
@NotEmpty
@Schema(description = "当前日期")
        private String date;

private LocalDateTime createdTime;

private LocalDateTime updateTime;
        }